/*
* 上网套餐类
* */
public class onlineSuit implements onlineService {
    double onlineData = 2048.00;//默认值2G的流量
    double consume = 2.00;//默认值2元资费

    public onlineSuit() {
    }

    public onlineSuit(double onlineData, double consume) {
        this.onlineData = onlineData;
        this.consume = consume;
    }

    public double getOnlineData() {
        return onlineData;
    }

    public void setOnlineData(double onlineData) {
        this.onlineData = onlineData;
    }

    public double getConsume() {
        return consume;
    }

    public void setConsume(double consume) {
        this.consume = consume;
    }

    public void show(){
        System.out.println("本套餐的上网流量为："+ onlineData+"，每月资费为："+consume);
    }


    @Override
    public void service(double onlineData, sdCardEnum type) {
        System.out.println("这是上网套餐类里实现上网服务接口的方法");

    }
}
